import _axios from "@/utils/axios";

// 获取用户信息
export const getUserInfo = (params?: any) => _axios.get('/api/users', { data: params });

// 删除用户
export const delUser = (id: number) => _axios.post('/api/users/delete', JSON.stringify({ id }))

// 新增用户
export const addUser = (params: any) => _axios.post('/api/users/add', JSON.stringify(params))

// 修改用户
export const updateUser = (params: any) => _axios.post('/api/users/update', JSON.stringify(params))